Method and apparatus for updating dns of host in ipv6 stateless address configuration

ABSTRACT

Disclosed is a method for updating DNS of host in IPv6 stateless address auto-configuration, wherein an option is added in the RS message sent by a host and/or RA message sent by a router, said option including information for negotiation of updating DNS of host. Based on said information, the host negotiates with the router to determine whether the host or the router register, the mapping between the global address of the host and the full domain name of the host, to a DNS server, to complete updating the DNS of the host. This invention enables the host to correctly identify the matching relation between domain name suffix information and address prefix, and achieves the negotiation of updating DNS domain name between the host and the router. Since DNS updating is performed by a router instead of the host, the DNS updating would become simple and safe.

FIELD OF THE INVENTION

The present invention relates to IPv6 applications in a communication network and a computer network, and more particularly, to a method for updating DNS(domain name server) of host in IPv6 stateless address configuration.

BACKGROUND OF THE INVENTION

The deployment of IPv6 has dramatically reduced address pressure in IPv4. However, a 128-bit IPv6 address is not so easy to remember as an IPv4 address, and domain names will be put into more extensive applications in IPv6. Currently, there are two methods for configuring domain name information in IPv6: (1) to manually add the mapping relation between an address and a domain name to a DNS server; (2) to automatically update a domain name using FQDN (fully qualified domain name) options in the DHCP protocol (dynamic host configuration protocol). Method (1) needs manual intervention and is thus hardly competent for a large number of hosts. Method (2) is merely applicable to hosts that configure addresses using DHCP.

There are two kinds of address configuration manners in IPv6, namely stateful address configuration and stateless address configuration. The stateful address configuration manner means configuration of address and other information by the DHCP protocol. Similar to IPv4, this method needs a DHCP server from which the host obtains information on address configuration in client/server mode.

The stateless address auto-configuration is a characteristic address configuration manner for IPv6. In this manner, the network interface requiring address configuration obtains a link local address using neighbor discovery mechanism first, and after obtaining the link local address, the network interface sends a router solicitation (hereinafter referred to as RS) message to a full router multicast address. The local router transfers the prefix of one or more global addresses to the host by router advertisement (hereinafter referred to as RA) message. Finally, the host combines the obtained address prefix and the interface identifier to get a global address. The router may also periodically send a RA message, and the host, upon acquisition of the message, configures the interface's global address in accordance with the address prefix.

The stateless address configuration method used in IPv6 is a distinct advantage of IPv6, which enables the host device to obtain the IPv6 address without manual configuration or DHCP server maintenance.

However, there is so far no method for automatically updating DNS for a host that configures addresses using a stateless address configuration method. The existing IPv6 router advertisement based DNS auto-configuration is an obsolete draft and has following deficiencies not to be ignored:

On the one hand, since this method does not specify the matching relation between domain name suffix information and address prefix, if the router has issued a plurality of address prefixes, then the host cannot correctly identify the matching relation;

On the other hand, it is the host that automatically updates a DNS domain name according to this method, which will cause security pitfalls. Even if security guarantee is implemented using the DNSsec method, corresponding authentication information needs to be installed on each host, which will make the DNS updating very complicated.

SUMMARY OF THE INVENTION

It is an object of the present invention to provide a reliable and effective method for updating DNS of host in IPv6 stateless address configuration, which method enables the host to correctly identify the matching relation between domain name suffix information and address prefix, and achieves the negotiation of updating DNS domain name between the host and the router. Since DNS updating is performed by a router instead of the host, the DNS updating would become simple and safe.

To achieve the object, the basic idea of the present invention is to define a new RS/RA option—“host FQDN” option which is used to enable the host to negotiate with the router to update DNS domain name, i.e. either the host or the router may implement the updating. Meanwhile, it is to specify the matching relation between domain name suffix information and address prefix in the RA message so that the host can easily identify which address matches which domain name suffix.

To this end, the present invention provides a method for updating DNS of host in IPv6 stateless address configuration, characterized by,

-   -   adding an option in the RS message sent by a host and/or RA         message sent by a router, said option including information for         negotiation of updating DNS of host;     -   based on said information, the host negotiating with the router         to determine whether the host or the router register, the         mapping between the global address of the host and the full         domain name of the host, to a DNS server, to complete updating         the DNS of the host.

The present invention further provides a method for updating DNS of host in IPv6 stateless address configuration, characterized by,

-   -   adding an option in the RA message sent by a router to a host,     -   said option in the RA message including domain name suffix         information of the host, in the RA message, the option being         placed after corresponding one or more address prefix option(s),         to indicate that the option and said one or more address prefix         form a match,     -   based on the match, the host using the domain name suffix         information to form its full domain name, using the matched         address prefix to construct a global address, and mapping the         full domain name to the global address,     -   the host or the router registering, the mapping between the         global address of the host and the full domain name of the host,         to a DNS server, to complete updating the DNS of the host.

The present invention further provides an IPv6 stateless address configuration system, comprising a host and a router, said host including a network interface module, a processing module, and a memory module, the router including a network interface module, a processing module, and a memory module, characterized in that,

-   -   the processing module of the host sends a RS message via the         network interface module of the host, the processing module of         the router sends a RA message via the network interface module         of the router, the RS message and/or the RA message includes an         option including information for negotiation of updating DNS of         host;     -   by means of the respective processing modules, network interface         modules, and memory modules, based on said information, the host         negotiates with the router to determine whether the host or the         router register, the mapping between the global address of the         host and the full domain name of the host, to a DNS server, to         complete updating the DNS of the host.

The present invention further provides a host for use in an IPv6 stateless address configuration system, including a network interface module, a processing module, and a memory module, said system further comprising a router including a network interface module, a processing module, and a memory module, characterized in that,

-   -   the processing module of the host sends a RS message via the         network interface module of the host, and receives a RA message         sent by the processing module of the router via the network         interface module of the router, the RS message and/or the RA         message includes an option including information for negotiation         of updating DNS of host;     -   based on said information, the host via its processing module,         network interface module, and memory module, negotiates with the         router via its processing module, network interface module, and         memory module, to determine whether the host or the router         register, the mapping between the global address of the host and         the full domain name of the host, to a DNS server, to complete         updating the DNS of the host.

The present invention further provides a router for use in an IPv6 stateless address configuration system, including a network interface module, a processing module, and a memory module, said system further comprising a host including a network interface module, a processing module, and a memory module, characterized in that,

-   -   corresponding to a RS message sent by the processing module of         the host via the network interface module of the host, the         processing module of the router sends a RA message via the         network interface module of the router, the RS message and/or         the RA message includes an option including information for         negotiation of updating DNS of host;     -   based on said information, the router via its processing module,         network interface module, and memory module, negotiates with the         host via its processing module, network interface module, and         memory module, to determine whether the host or the router         register, the mapping between the global address of the host and         the full domain name of the host, to a DNS server, to complete         updating the DNS of the host.

BRIEF DESCRIPTION ON THE DRAWINGS

Hereinafter, the preferred embodiments of the present invention will be described with reference to the accompanying drawings, wherein:

FIG. 1 is a schematic view of a working flow for updating DNS by an IPv6 router in the present invention;

FIG. 2 is a schematic view of a working flow for updating DNS by a host in the present invention; and

FIG. 3 is a schematic block diagram of a host and router according to the present invention.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

FIG. 3 depicts a schematic block diagram of a host and router according to the present invention, in which a host 31 and a router 32 receives and sends RS messages and RA messages via network interface modules 311 and 321. Processing modules 312, 322 and memory modules 313, 323 of both host 31 and router 32 take part in respective operations.

The DNS updating may be implemented by host 31 or by router 32 instead of host 31, the DNS updating includes updating the mapping from domain name to address (forward mapping) and updating the mapping from address to domain name (reverse mapping). Theoretically, host 31 and router 32 may implement forward updating, reverse updating or both forward and reverse updating. However, not all matches make sense in reality. In the present invention, assuming the working modes of updating DNS include the following:

-   -   1. the IPv6 host updates AAAA resource records (i.e. forward         mapping) and PTR resource records (i.e. reverse mapping)     -   2. the IPv6 router updates AAAA resource records (i.e. forward         mapping) and PTR resource records (i.e. reverse mapping)

The difference between mode 1 and mode 2 is whether the host or the router updates AAAA resource records and PTR resource records. The definition of these two modes is out of consideration for security. The negotiation of updating DNS to be mentioned later refers, in particular, to the negotiation of updating AAAA resource records and PTR resource records.

“Host FQDN” Option

Definition of “Host FQDN” Option

In order to implement the updating of DNS domain name, the router or the host needs to know the full domain name (FQDN) corresponding to a certain IPv6 address. “Host FQDN” option enables the host and the router to know such information and negotiate who will update DNS based on the flag bit therein.

This option can only be contained in the RS and RA message, with a smallest length of four bytes.

The format is as follows:

-   -   Length: the length of flag bit (1)+the length of domain name     -   Flag field: for negotiation of updating DNS between the host and         the router and for defining the number of matches     -   Domain name: partial domain name or full domain name

Definition of Flag Field

The flag field is for negotiation of updating DNS domain name between host 31 and router 32 and for defining the number of matches.

The flag field is defined as follows:

The RV field is a reserved bit and may be used for future extension.

MNUM, the field for the number of matches: its size is 4 bits and used for defining the number of address prefixes which a FQDN option can match at most, and its value ranges between 1 and 16.

Use of R bit: if the router desires to update DNS instead of the host, then it sets R bit to 1 when sending “host FQDN” option, otherwise it sets R bit to 0.

Use of H bit: the host notifies the router to update DNS instead of itself by setting H bit. When R bit is set to 0 and the host is unable to perform DNS registration, the host will set R bit to 1 and H bit to 1 also in the loopback RS message. Otherwise, the host sets R bit to 0 and H bit to 0 also.

Illustration of Domain Name in Option

The domain name field in the option can transmit partial domain name or full domain name. The host uses full domain name or partial domain name, namely host name, when carrying this option in the RS message, whereas the router uses partial domain name, namely domain name suffix, when carrying this option in the RA message.

Use of “Host FQDN” Option

Host 31 carries “host FQDN” option only when processing module 312 sends the RS message via network interface module 311.

Router 32 carries “host FQDN” option only when processing module 322 sends the RA message via network interface module 321. When the router sends “host FQDN” option, the “host FQDN” option must match a certain address prefix option by means of processing module 322 and memory module 323, whereas it is not necessary for an address prefix to match a certain “host FQDN” option. The “host FQDN” option must be placed after one or more address prefix options, to indicate that it and the one or more address prefixes form a match. The MNUM field in the option is used for indicating the number of address prefixes that match the option, and unmatched address prefixes must be placed after the matched address prefixes and the “host FQDN” option. Such a method enables the host to easily identify the matching between address prefix and domain name suffix and further enables the host to map its full domain name to the global address constructed using the matched address prefix, so as to update the mapping when processing module 312 of the host updates DNS via network interface module 311. Such a matching method may also be applicable to other methods for updating DNS with or without negotiation.

If the router is set to update DNS, then it may or may not carry domain name field when sending the “host FQDN.” Upon receipt of the RA message, the host, by means of processing module 312 and memory module 313, maps the address generated by the address prefix to the domain name in the “host FQDN” option that matches the address prefix. The mapping may be updated by the host or the router based on the R and H bits in the set flag field.

Host 31 receives a RA message via network interface 311. The RA message may be an acknowledgement for the RS message sent from the router 32 to the host or may be a periodic RA broadcast of the router. The router will set the corresponding flag bit by processing module 322 based on the configuration condition thereof.

If host 31 supports the “host FQDN” option, then it will carry the “host FQDN” option in the RS message, and sets the corresponding flag bit by the processing module 312 based on the method in the flag bit definition.

If R bit is 1, i.e. it is the router that updates DNS, then the host will send a RS message carrying the “host FQDN” to the router, and the source address thereof must be the address generated by the address prefix matching domain name. If there are more than two matches, then it must send a RS message for each match. Afterwards, the router updates DNS based on the corresponding mapping, as depicted in FIG. 1.

If R is 0, then the host that supports the DNS domain name registration must register domain name by itself, i.e. maps the full domain name to the global address constructed by the matched address prefix and then updates the mapping, as depicted in FIG. 2. The host that does not support the DNS domain name registration may notify the router to perform registration for it by sending the “host FQDN” option whose H bit and R bit are both set to 1.

Various alterations and modifications may be made without departing from the spirit and scope of the present invention. It is to be understood that the present invention is not limited to the specific embodiments and the scope thereof is as defined in the appended claims. 

1. A method for updating DNS of host in IPv6 stateless address auto-configuration, characterized by, adding an option in the RS message sent by a host and/or RA message sent by a router, said option including information for negotiation of updating DNS of host; based on said information, the host negotiating with the router to determine whether the host or the router register, the mapping between the global address of the host and the full domain name of the host, to a DNS server, to complete updating the DNS of the host.
 2. The method according to claim 1, characterized in that the router updates the DNS based on the information for negotiation.
 3. The method according to claim 1, characterized in that the host updates the DNS based on the information for negotiation.
 4. The method according to claim 3, characterized in that if the host does not support the DNS updating, then the host will notify the router through the information for negotiation to update DNS.
 5. The method according to claim 1, characterized in that the option in the RA message includes domain name suffix information of the host, in the RA message, the option being placed after corresponding one or more address prefix, to indicate that the option and said one or more address prefix form a match.
 6. The method according to claim 5, characterized in that the option includes information for indicating the number of address prefixes that match the option.
 7. The method according to claim 5, characterized in that unmatched address prefix options are placed after matched address prefix options and the option.
 8. The method according to claim 5, characterized in that the RA message may be acknowledgement for the RS message sent from the router to the host or may be periodic RA broadcast of the router.
 9. The method according to claim 8, characterized in that the host completes the mapping between the global address and the full domain name thereof based on the RA message, and the host or the router updates the DNS based on the information for negotiation.
 10. The method according to claim 9, characterized in that the host updates the DNS based on the information for negotiation.
 11. The method according to claim 9, characterized in that based on the information for negotiation, the router updates the DNS, the host sends the RS message to the router, and the option in the RS message further includes the full domain name of the host.
 12. The method according to claim 9, characterized in that based on the information for negotiation, the router updates the DNS, the host completes mapping the global address to the host domain name thereof and sends the RS message, in which the option further includes the host name of the host, to the router, and the router completes mapping the global address to the full domain name thereof.
 13. The method according to claim 2, characterized in that upon receipts of the RA message, the host completes mapping the global address to the host domain name thereof and sends the RS message, in which the option further includes the host name of the host, to the router, and the router completes mapping the global address to the full domain name thereof.
 14. A method for updating DNS of host in IPv6 stateless address configuration, characterized by, adding an option in the RA message sent by a router to a host, said option in the RA message including domain name suffix information of the host, in the RA message, the option being placed after corresponding one or more address prefix option(s), to indicate that the option and said one or more address prefix form a match, based on the match, the host using the domain name suffix to form its full domain name, using the matched address prefix to construct a global address, and mapping the full domain name to the global address, the host or the router registering, the mapping between the global address of the host and the full domain name of the host, to a DNS server, to complete updating the DNS of the host.
 15. The method according to claim 14, characterized in that the option includes information for indicating the number of address prefixes that match the option.
 16. The method according to claim 14, characterized in that unmatched address prefix options are placed after matched address prefix options and the option.
 17. An IPv6 stateless address configuration system, comprising a host and a router, said host including a network interface module, a processing module, and a memory module, the router including a network interface module, a processing module, and a memory module, characterized in that, the processing module of the host sends a RS message via the network interface module of the host, the processing module of the router sends a RA message via the network interface module of the router, the RS message and/or the RA message includes an option including information for negotiation of updating DNS of host; by means of the respective processing modules, network interface modules, and memory modules, based on said information, the host negotiates with the router to determine whether the host or the router register, the mapping between the global address of the host and the full domain name of the host, to a DNS server, to complete updating the DNS of the host.
 18. A host for use in an IPv6 stateless address configuration system, including a network interface module, a processing module, and a memory module, said system further comprising a router including a network interface module, a processing module, and a memory module, characterized in that, the processing module of the host sends a RS message via the network interface module of the host, and receives a RA message sent by the processing module of the router via the network interface module of the router, the RS message and/or the RA message includes an option including information for negotiation of updating DNS of host; based on said information, the host via its processing module, network interface module, and memory module, negotiates with the router via its processing module, network interface module, and memory module, to determine whether the host or the router register, the mapping between the global address of the host and the full domain name of the host, to a DNS server, to complete updating the DNS of the host.
 19. A router for use in an IPv6 stateless address auto-configuration system, including a network interface module, a processing module, and a memory module, said system further comprising a host including a network interface module, a processing module, and a memory module, characterized in that, corresponding to a RS message sent by the processing module of the host via the network interface module of the host, the processing module of the router sends a RA message via the network interface module of the router, the RS message and/or the RA message includes an option including information for negotiation of updating DNS of host; based on said information, the router via its processing module, network interface module, and memory module, negotiates with the host via its processing module, network interface module, and memory module, to determine whether the host or the router register, the mapping between the global address of the host and the full domain name of the host, to a DNS server, to complete updating the DNS of the host. 